﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CRM.MODEL
{

    #region 存储过程 Pro_GetPartsCategory 的相关参数
    /// <summary>
    /// Pro_GetPartsCategory 的相关参数
    ///PartsCategory
    ///xialei
    /// </summary>
    [Serializable]
    public struct GetPartsCategory
    {
        //参数定义	 		     
        public const string IDPARM = "@ID";
        public const string PARENTCATEGORYIDPARM = "@ParentCategoryID";
        public const string CATEGORYNAMEPARM = "@CategoryName";
        public const string CATEGORYDISPLAYNAMEPARM = "@CategoryDisplayName";
        public const string CATEGORYCODEPARM = "@CategoryCode";
        public const string REMARKPARM = "@Remark";
        public const string ISAVAILABLEPARM = "@IsAvailable";
        public const string CREATEBYPARM = "@CreateBy";
        public const string CREATETIMEPARM = "@CreateTime";
        public const string LASTMODIFYBYPARM = "@LastModifyBy";
        public const string LASTMODIFYTIMEPARM = "@LastModifyTime";

        public const string KEYVALUEPARM = "@KeyValue";
        //分页参数定义  
        public const string ORDERSTRING_PARM = "@OrderString";
        public const string PAGESIZE_PARM = "@PageSize";
        public const string CURRENTPAGEINDEX_PARM = "@CurrentPageIndex";
        public const string TOTALITEMS_PARM = "@TotalItems";

        //字段属性设置
        private object ID;
        public object IDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ID); }
            set
            { this.ID = value; }
        }

        private object ParentCategoryID;
        public object PARENTCATEGORYIDVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ParentCategoryID); }
            set
            { this.ParentCategoryID = value; }
        }

        private object CategoryName;
        public object CATEGORYNAMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CategoryName); }
            set
            { this.CategoryName = value; }
        }

        private object CategoryDisplayName;
        public object CATEGORYDISPLAYNAMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CategoryDisplayName); }
            set
            { this.CategoryDisplayName = value; }
        }
        private object CategoryCode;
        public object CATEGORYCODEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CategoryCode); }
            set
            { this.CategoryCode = value; }
        }

        private object Remark;
        public object REMARKVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Remark); }
            set
            { this.Remark = value; }
        }

        private object IsAvailable;
        public object ISAVAILABLEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsAvailable); }
            set
            { this.IsAvailable = value; }
        }

        private object CreateBy;
        public object CREATEBYVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateBy); }
            set
            { this.CreateBy = value; }
        }

        private object CreateTime;
        public object CREATETIMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateTime); }
            set
            { this.CreateTime = value; }
        }

        private object LastModifyBy;
        public object LASTMODIFYBYVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyBy); }
            set
            { this.LastModifyBy = value; }
        }

        private object LastModifyTime;
        public object LASTMODIFYTIMEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyTime); }
            set
            { this.LastModifyTime = value; }
        }

        private object KeyValue;
        public object KEYVALUEVALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.KeyValue); }
            set
            { this.KeyValue = value; }
        }


        //分页属性设置
        private object OrderString;
        public object ORDERSTRING_VALUE
        {
            get { return CRM.UTIL.Common.TransQuote(this.OrderString); }
            set { this.OrderString = value; }
        }

        private object PageSize;
        public object PAGESIZE_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.PageSize, CRM.UTIL.Common.DefaultPageSize); }
            set { this.PageSize = value; }
        }

        private object CurrentPageIndex;
        public object CURRENTPAGEINDEX_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.CurrentPageIndex, CRM.UTIL.Common.DefaultCurrentPageIndex); }
            set { this.CurrentPageIndex = value; }
        }

        private object TotalItems;
        public object TOTALITEMS_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.TotalItems); }
            set { this.TotalItems = value; }
        }

    }
    #endregion

    #region 存储过程 Pro_EditPartsCategory 的相关参数
    /// <summary>
    /// Pro_EditPartsCategory 的相关参数
    ///PartsCategory
    ///xialei
    /// </summary>
    [Serializable]
    public struct EditPartsCategory
    {
        //动作参数
        public const string ACTION_PARM = "@Action";
        //错误信息参数
        public const string ERRMSG_PARM = "@errMsg";

        public const string OUTID_PARM = "@OutID";
        ////表字段参数
        public const string IDPARM = "@ID";
        public const string PARENTCATEGORYIDPARM = "@ParentCategoryID";
        public const string CATEGORYNAMEPARM = "@CategoryName";
        public const string CATEGORYDISPLAYNAMEPARM = "@CategoryDisplayName";
        public const string CATEGORYCODEPARM = "@CategoryCode";
        public const string REMARKPARM = "@Remark";
        public const string ISAVAILABLEPARM = "@IsAvailable";
        public const string CREATEBYPARM = "@CreateBy";
        public const string CREATETIMEPARM = "@CreateTime";
        public const string LASTMODIFYBYPARM = "@LastModifyBy";
        public const string LASTMODIFYTIMEPARM = "@LastModifyTime";


        //动作属性
        private object Action;
        public object ACTION_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Action); }
            set
            { this.Action = value; }
        }

        //错误信息属性
        private object errMsg;
        public object ERRMSG_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.errMsg); }
            set
            { this.errMsg = value; }
        }

        private object OutID;
        public object OUTID_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.OutID); }
            set { this.OutID = value; }
        }

        //表字段属性
        private object ID;
        public object ID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ID); }
            set
            { this.ID = value; }
        }

        private object ParentCategoryID;
        public object PARENTCATEGORYID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ParentCategoryID); }
            set
            { this.ParentCategoryID = value; }
        }

        private object CategoryName;
        public object CATEGORYNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CategoryName); }
            set
            { this.CategoryName = value; }
        }

        private object CategoryDisplayName;
        public object CATEGORYDISPLAYNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CategoryDisplayName); }
            set
            { this.CategoryDisplayName = value; }
        }
        private object CategoryCode;
        public object CATEGORYCODE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CategoryCode); }
            set
            { this.CategoryCode = value; }
        }

        private object Remark;
        public object REMARK_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Remark); }
            set
            { this.Remark = value; }
        }

        private object IsAvailable;
        public object ISAVAILABLE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsAvailable); }
            set
            { this.IsAvailable = value; }
        }

        private object CreateBy;
        public object CREATEBY_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateBy); }
            set
            { this.CreateBy = value; }
        }

        private object CreateTime;
        public object CREATETIME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.CreateTime); }
            set
            { this.CreateTime = value; }
        }

        private object LastModifyBy;
        public object LASTMODIFYBY_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyBy); }
            set
            { this.LastModifyBy = value; }
        }

        private object LastModifyTime;
        public object LASTMODIFYTIME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.LastModifyTime); }
            set
            { this.LastModifyTime = value; }
        }

    }
    #endregion
}
